* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
}

.container {
    background-color: white;
    min-height: 100vh;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.table-container {
    margin-top: 1rem;
    overflow-x: auto;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.error-message {
    color: red;
    margin-top: 5px;
}

.success-message {
    color: green;
    margin-top: 5px;
}

header {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
}

nav ul li a:hover {
    background-color: #e9ecef;
    border-radius: 4px;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.card-title {
    margin-bottom: 0;
}

.search-box {
    max-width: 300px;
}

.table th:last-child,
.table td:last-child {
    width: 150px;
    text-align: center;
}

.invalid-feedback {
    font-size: 80%;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

@media (max-width: 768px) {
    .form-container {
        padding: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-sm {
        width: 100%;
    }
} 

/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

/* 侧边栏样式 */
.main-sidebar {
    background: linear-gradient(180deg, #2b2b2b 0%, #1a1a1a 100%);
}

.nav-sidebar .nav-link {
    padding: 12px 15px;
}

.nav-sidebar .nav-link.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, #0056b3 100%);
}

/* 内容区域样式 */
.content-wrapper {
    background-color: #f4f6f9;
}

.card {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.card-header {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-bottom: 1px solid #eee;
}

/* 表格样式 */
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(to right, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(to right, #0056b3, #003980);
}

/* 表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0;
    }
    
    .main-sidebar {
        margin-left: -250px;
    }
    
    .sidebar-open .main-sidebar {
        margin-left: 0;
    }
} 